package com.hyq.proxy.dynamic;
/**
* @ClassName: GameZhangSan
* @Description: 沉迷游戏玩家<具体被委托类，被代理类>
* @author Janus
 */
public class Players implements IGamePlayer {
	private String name="";
	//构造参数
	public Players(String name){
			this.name=name;
	}
	/**
	 * 玩家登录
	 */
	@Override
	public void login(String name) {
		System.out.println("游戏玩家"+name+"登录，帐号"+this.name+"登陆成功!");
	}
	/**
	 * 杀怪
	 */
	@Override
	public void killBoss() {
		System.out.println("玩家"+this.name+"正在打怪！");
	}
	/**
	 * 升级
	 */
	@Override
	public void upgrade() {
		System.out.println("玩家"+this.name+"升了一级！");
	}
	/**
	 * 装备
	 */
	@Override
	public void equipment() {
		System.out.println("玩家"+this.name+"打到一件橙字装备！");
	}

}
